%windir%\Microsoft.NET\Framework\v3.5\MSBuild.exe %inetroot%\MptParentChildService\MptParentChildService.csproj /t:Build /p:Configuration=Release
%windir%\Microsoft.NET\Framework\v3.5\MSBuild.exe %inetroot%\MptParentChildServiceCmdHost\MptParentChildServiceCmdHost.csproj /t:Build /p:Configuration=Release

:: this works but there is something not working on the build server. Getting errors like:
::    error CS0246: The type or namespace name 'TestClass' could not be found (are you missing a using directive or an assembly reference?) 
:: %mstestdir%mstest.exe /testmetadata:Mpt.vsmdi /testlist:NonTfsTests

robocopy %inetroot%\MptParentChildService\bin\Release %CodeBoxDropShare%\LatestBuild\MptParentChildService *.* /PURGE /IS /IT /V
 
robocopy %inetroot%\MptParentChildServiceCmdHost\bin\Release %CodeBoxDropShare%\LatestBuild\MptParentChildServiceCmdHost *.* /PURGE /IS /IT /V

robocopy %inetroot%\DevLibraries %CodeBoxDropShare%\LatestBuild\DevLibraries *.* /PURGE /IS /IT /V

if errorlevel 16  echo  ***FATAL ERROR***  & goto fail
if errorlevel 15  echo FAIL MISM XTRA COPY & goto fail
if errorlevel 14  echo FAIL MISM XTRA      & goto fail
if errorlevel 13  echo FAIL MISM      COPY & goto fail
if errorlevel 12  echo FAIL MISM           & goto fail
if errorlevel 11  echo FAIL      XTRA COPY & goto fail
if errorlevel 10  echo FAIL      XTRA      & goto fail
if errorlevel  9  echo FAIL           COPY & goto fail
if errorlevel  8  echo FAIL                & goto fail
 
if errorlevel  7  echo      MISM XTRA COPY & goto success
if errorlevel  6  echo      MISM XTRA      & goto success
if errorlevel  5  echo      MISM      COPY & goto success
if errorlevel  4  echo      MISM           & goto success
if errorlevel  3  echo           XTRA COPY & goto success
if errorlevel  2  echo           XTRA      & goto success
if errorlevel  1  echo                COPY & goto success
if errorlevel  0  echo    --no change--    & goto success
 
:success
exit /B 0
goto end
 
:fail
exit /B 1
 
:end